Message Passing in Java
What is message passing and why it is used? Message Passing in terms of computers is communication between processes. It is a form of communication used in object-oriented programming as well as parallel programming. Message passing in Java is like sending an object i.e. message from one thread to another thread. It is used when threads do not have shared memory and are unable to share monitors or semaphores or any other shared variables to communicate. Suppose we consider an example of producer and consumer, likewise what producer will produce, the consumer will be able to consume that only. We mostly use Queue to implement communication between threads....
read more
Find time taken to execute the tasks in A based on the order of execution in B
Given two queues A and B, each of size N, the task is to find the minimum time taken to execute the tasks in A based on the order of execution in B where:...
read more
Difference between Multilevel Queue (MLQ) and Multi Level Feedback Queue (MLFQ) CPU scheduling algorithms
In multi programming environment, it often happens that more than one processes compete for CPU resources at the same time. If only one CPU is available choice has to be made between processes to run next. Part of the Operating System responsible for making choice of process is called Scheduler and the algorithm it used is called Scheduling Algorithm....
read more
Round Robin Scheduling with different arrival times
Prerequisite: Round Robin Scheduling with arrival time as 0...
read more
Techniques to handle Thrashing
Prerequisite – Virtual Memory Thrashing is a condition or a situation when the system is spending a major portion of its time servicing the page faults, but the actual processing done is very negligible....
read more
Calculate server loads using Round Robin Scheduling
Given M servers that handle multiple requests having infinite computational capability and arrays arrivalTime[] and processTime[] of size N denoting the arrival time and load time of N requests in the following manner:...
read more
Communication between two process using signals in C
Prerequisite : C signal handling In this post, the communication between child and parent processes is done using kill() and signal(), fork() system call....
read more
Difference between Windows and DragonFly BSD
1. Windows : Windows is a group of various proprietary graphical operating systems which is provided by Microsoft Incorporation. It is also known as Microsoft Windows. It currently includes Windows NT and Windows IoT as members of its family. Earlier it included Windows 9x, Windows Mobile and Windows Phone which are no longer in use. It is the most used operating system in personal computers. The first version of Windows was launched by Microsoft in 1985. The most recent version of Windows for personal computers is Windows 10....
read more
Difference Between Process, Parent Process, and Child Process
Running program is a process. From this process, another process can be created. There is a parent-child relationship between the two processes. This can be achieved using a library function called fork(). fork() function splits the running process into two processes, the existing one is known as parent and the new process is known as a child. Here is a program that demonstrates this:...
read more
Difference between Android 1.0 and Android 5.0.1
1. Android 1.0 : Android 1.0 is the very first version of Android which was introduced by Google. It had some basic features including web browser support, camera support, Gmail accounts, Google maps and Youtube application. Although it does not have the official version name like further introduces versions but unofficially it is called Apple Pie. The API level in Android 1.0 version is 1. It is not used anymore in the mobile devices. It was released on 23 September 2008....
read more
Difference between Android 1.0 and Android 2.3.7
1. Android 1.0 : Android 1.0 is the very first version of Android which was introduced by Google. It had some basic features including web browser support, camera support, Gmail counts, Google maps and Youtube application. Although it does not have the official version name like further introduces versions but unofficially it is called Apple Pie. The API level in Android 1.0 version is 1. It is not used anymore in the mobile devices. It was released on 23 September 2008....
read more
Context Switching in Operating System
An operating system is a program loaded into a system or computer. and manage all the other program which is running on that OS Program, it manages the all other application programs. or in other words, we can say that the OS is an interface between the user and computer hardware....
read more